<?php
/**
 * File: cmsarticles.php.
 * Author: caoqicheng@haibao.com
 * Editor: PhpStorm
 * Date: 17/2/7 上午10:45
 * Brief:
 */
namespace haibao\jiepai\model\data\article;

class CmsArticles extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 类型：1-图文混排，2-画报，3-广告，
	 * 4-私照，5-海报文章，100-壁纸，
	 * 101-一周看点，102-模范生，103-下周怎么穿，
	 * 104-明星穿什么，105-种草，106-花边，
	 *  107-九点，108-街友评审团
	 */
	const TYPE_WORD = 1;
	const TYPE_PICTORIAL = 2;
	const TYPE_ADVERTISE = 3;
	const TYPE_PRIVATE_PHOTO = 4;
	const TYPE_HAIBAO_ARTICLE = 5;
	const TYPE_WALLPAPER = 100;
	const TYPE_WEEK_POINT = 101;
	const TYPE_MODEL_STUDENT = 102;
	const TYPE_NEXT_WEEK_WEAR = 103;
	const TYPE_STAR_WEAR= 104;
	const TYPE_GROW_GRASS = 105;
	const TYPE_LACE = 106;
	const TYPE_NINE_POINT = 107;
	const TYPE_FRIEND_REVIEW = 108;

	/**
	 * 发布状态
	 * -1.下架.0.未发布.1.发布
	 */
	const STATUS_DOWN = -1;
	const STATUS_DISPUBLISH = 0;
	const STATUS_ENPUBLISH = 1;
	
	/**
	 * -1是，0否
	 * 是否是删除
	 */
	const FLAG_DEL = -1;
	const FLAG_IS = 0;
	
	/**
	 * 1.序列1,2.序列2,3.序列1隐藏，4.序列2隐藏
	 * 是否是删除
	 */
	const LINE_ONE_IS= 1;
	const LINE_TWO_IS = 2;
	const LINE_ONE_DIS = 3;
	const LINE_TWO_DIS = 4;
	const LINE_ALL = 5;
	
	public $ColumnID;

	public $EditorID;
	
	public $Type;
	
	public $Title;
	
	public $SubtitleType;
	
	public $Subtitle;
	
	public $Summary;
	
	public $CreateTime;
	
	public $UpdateTime;
	
	public $PublishTime;
	
	public $PublishUserID;
	
	public $PublishStatus;
	
	public $Scores;
	
	public $Flag;
	
	public $ContentLink;
	
	public $PictureNum;
	
	public $IsHeadLine;
	
	public $HaibaoID;
	
	public $Source;
	
	public $SourceTags;
	
	public $Html;
	
	public $TagList;
	
	public $BrowseNum;
	
	public $OldJiepaiStatistic;
	
	public $_3DPicture;
	
	public $EndTime;
	
	public $TagInfoList;
	
	public $TypeName;
	
	public $ArticleStatistic;
	
	public $ArticleContentInfo;
	
	public $ArticleType;
	
	public $CmsArticlesRec;

	public $CmspersonTag;
	
	public $celebrityList;
	
	public $PictureUrl;
	
	public $PictureSourceUrl;
	
	public function __construct(){
		parent::__construct();
		$this->setColumnName('Id', 'ArticleID');
		
		$this->intField('ColumnID', 'ColumnID');
		$this->intField('EditorID', 'EditorID');
		$this->intField('Type', 'Type');
		$this->stringField('Title', 'Title');
		$this->stringField('SubtitleType', 'SubtitleType');
		$this->stringField('Subtitle', 'Subtitle');
		$this->stringField('Summary', 'Summary');
		$this->dateField('CreateTime', 'CreateTime');
		$this->dateField('UpdateTime', 'UpdateTime');
		$this->dateField('PublishTime', 'PublishTime');
		$this->intField('PublishUserID', 'PublishUserID');
		$this->intField('PublishStatus', 'PublishStatus');
		$this->intField('Scores', 'Scores',true);
		$this->intField('Flag', 'Flag');
		$this->stringField('ContentLink', 'ContentLink');
		$this->intField('PictureNum', 'PictureNum');
		$this->intField('IsHeadLine', 'IsHeadLine');
		$this->intField('HaibaoID', 'HaibaoID');
		$this->stringField('Source', 'Source');
		$this->stringField('SourceTags', 'SourceTags');
		$this->stringField('Html', 'Html');
		$this->stringField('TagList', 'TagList');
		$this->intField('BrowseNum', 'BrowseNum');
		$this->stringField('OldJiepaiStatistic', 'OldJiepaiStatistic');
		$this->intField('3DPicture', '3DPicture');
		$this->dateField('EndTime', 'EndTime');
		
		$this->setTableName('cms_articles');
	}
}